﻿using System;
using System.Collections.Generic;

namespace RuiciWebSite.Models
{
    public class RecentVisitExpertsViewModel
    {
        public string Id { set; get; }

        public int Appointment { set; get; }

        public int Capacity { set; get; }

        public int ClinicID { set; get; }

        public int ClinicinfoID { set; get; }

        public DateTime Date { set; get; }

        public int HospitalID { set; get; }

        public bool IsRemote { set; get; }

        public ExtensionDataObject ExtensionData { set; get; }

        public string Image { set; get; }
        public string StampUrl { set; get; }
        public string Name { set; get; }

        public string DeptName { set; get; }

        public string DeptId { set; get; }

        public string TitleName { set; get; }

        public string TitleID { get; set; }

        public string OrgName { set; get; }

        public string DepName2 { set; get; }

        public string AffiliatedHospital { set; get; }

        public string SkillIn { set; get; }
        

        public string Comments { set; get; }

        /// <summary>
        /// 详情
        /// </summary>
        public List<SubDate> subdate { set; get; }
    }

    public class ExtensionDataObject
    {
        public int docIDField;

        public System.DateTime DateField;

        public int appointmentField;

        public int capacityField;

        public int hospitalIDField;

        public int clinicIDField;

        public int clinicinfoIDField;

        public bool IsRemoteField;

    }

    public class SubDate
    {
        /// <summary>
        /// 时间类型（AM、PM、NM）
        /// </summary>
        public string TimeTarget { set; get; }
        /// <summary>
        /// 时间（7：30-8：00）
        /// </summary>
        public string Time { set; get; }
        /// <summary>
        /// 已约数
        /// </summary>
        public int Appointment { set; get; }
        /// <summary>
        /// 总容量
        /// </summary>
        public int Capacity { set; get; }

        public bool NoBooking { set;get; }

    }
}
